<template>
	<view class="yc_main"> </view>
</template>

<script>
let tagInfo = "[/pages/.vue]";
import basePage from "@/libs/base-page.js";
export default {
	//name: "index-me",
	mixins: [basePage],
	data() {
		return {};
	},
	onLoad() {
		this.loadData();
		uni.request({
			url: "https://www.example.com/request", //仅为示例，并非真实接口地址。
			data: {
				text: "uni.request"
			},
			header: {
				"custom-header": "hello" //自定义请求头信息
			},
			success: (res) => {
				if (res.code == 0) {
					uni.request({
						url: "https://www.example.com/request", //仅为示例，并非真实接口地址。
						data: {
							text: "uni.request"
						},
						header: {
							"custom-header": "hello" //自定义请求头信息
						},
						success: (res1) => {
							if (res1.code == 0) {
								uni.request({
									url: "https://www.example.com/request", //仅为示例，并非真实接口地址。
									data: {
										text: "uni.request"
									},
									header: {
										"custom-header": "hello" //自定义请求头信息
									},
									success: (res) => {
										console.log(res.data);
										this.text = "request success";
									}
								});
							}
						}
					});
				}
			}
		});
	},
	methods: {
		async loadData() {
			//this.initSaveData();
		}
	}
};
</script>

<style lang="scss" scoped>
</style>
